// 编写第一个mobx案例
import { makeAutoObservable } from 'mobx'

export default class CounterStore {
  count = 0;

  constructor() {
    makeAutoObservable(this)
  }

  addCount = () => {
    this.count += 1;
  }
}